﻿using System.Globalization;
using System.Threading;
using ORM.Business.Models;
using ORM.Controllers;
using ORM.Framework.Filters;

namespace ORM.Areas.Admin.Controllers
{
    /// <summary>
    /// Base class for all controllers in the Admin area
    /// </summary>
    [PermissionAuthorize(Permissions = KeyObject.Permission.ViewAdminPages)] // At least the user has to login in order to access Admin pages
    public abstract class AdminControllerBase : OrmControllerBase
    {
        protected AdminControllerBase()
        {
            // Back-end pages are displayed with English  
            Thread.CurrentThread.CurrentUICulture = new CultureInfo("en");
        }
    }
}
